package com.cj;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.awt.print.Book;

/**
 * @author cc
 * @date 2025-05-11 21:17
 **/
//@Data
    @Getter
    @Setter
    @ToString
public class User {

    private Integer id;
    private String username;
    private String password;


    private Book book;


    public User(String username, String password) {
        System.out.println("有参构造");
        this.username = username;
        this.password = password;
    }

    public User() {
        System.out.println("init user");
    }


    public void init(){
        System.out.println(" init method");
    }


    public void destroy(){
        System.out.println(" destroy method");
    }
}
